package com.example.springcloud.handleer;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.example.springcloud.entities.CommonResult;

/**
 * @ClassName CustomerBlockHandler
 * @Author Admin
 * @Date 2020/9/17 3:17
 * @Version 1.0
 * 统一业务异常响应类
 **/
public class CustomerBlockHandler {
    public static CommonResult handlerException(BlockException exception){
        return  new CommonResult(455,"客户自定义的限流处理信息-----handlerException");
    }
    public static CommonResult handlerException2(BlockException exception){
        return  new CommonResult(455,"客户自定义的限流处理信息.......handlerException2");
    }
}
